package com.suray.attendance.db.service;

import com.suray.attendance.model.pojo.UserInfo;

import java.util.List;

/**
 * @Author: jianglinyu
 * @CreateTime: 2023-07-07  19:06
 * @Description: ERP和钉钉之间的用户对应业务层接口类
 * @Version: 1.0
 */
public interface DingUserDBService {


    /**
     * @description: 批量新增或者修改用户的基本信息到mysql数据库
     * @author: jianglinyu
     * @date: 2023/7/11 11:25
     **/
    public void insertOrUpdateToDB(List<UserInfo> userInfoList);

    /**
     * @description: 根据erp的员工名获取钉钉的部门id
     * @author: jianglinyu
     * @date: 2023/7/20 19:04
     *
     * @return*/
    public UserInfo getUserInfoByName(String name);

    public UserInfo getUserInfoById(String userId);

    public Boolean deleteAll();

}